using System;
using System.Collections.Generic;
using FairyGUI;
namespace Wwo
{
    public class WorkMgrView : Window
    {
        GList m_List;
        public WorkMgrView()
        {
            UIObjectFactory.SetPackageItemExtension("ui://WaterWorld/WorkItem", typeof(WorkItem));
        }

        protected override void OnInit()
        {
            this.contentPane = UIPackage.CreateObject("WaterWorld", "WorkMgr").asCom;

            float y = GRoot.inst.height - this.contentPane.height - UISets.GetInstance().m_MainMenuView.height;
            this.SetXY(0, y);

            m_List = this.contentPane.GetChild("listItems").asList;
            for (int i = 0; i < 2; i++)
            {
                WorkItem item = (WorkItem)m_List.AddItemFromPool();
                item.setTitle("尼古拉斯");
                item.setXiuYang(true);
            }
        }

        override protected void OnShown()
        {
        }
    }
}